Skip to content

Unify interactive controls and single-line rows to pill and circle shapes - #8394

Open
ComputelessComputer wants to merge 2 commits into
mainfrom
refactor/unify-pill-circle-shapes
Open

ComputelessComputer wants to merge 2 commits into
mainfrom
refactor/unify-pill-circle-shapes

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Context: Components across desktop (apps/desktop-gpui), shared web UI (packages/ui, packages/editor, apps/web), and mobile (apps/mobile) mixed pill/circle controls (such as switches, badges, Open calendar, and compact floating bars) with 4px–14px rounded rectangles on buttons, icon buttons, inputs, selects, segmented controls, and single-line menu/nav rows. On web, an older global border-radius: 0 !important rule in apps/web/src/styles.css and 8px JS squircle clips (useSquircleRef) on Button, Badge, SelectTrigger, and Avatar also prevented pill/circle shapes from rendering.

Intention: Unify single-line interactive controls and single-line navigation/menu rows to consistent pill and circle shapes across desktop, web, and mobile while keeping multi-line containers (cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows) as rounded rectangles.

Direction:

  • Desktop (apps/desktop-gpui):
    • Updated single-line interactive controls (buttons, square icon buttons, single-line TextInputs/search bars, selects, segmented control tracks and items, chips/badges, floating single-line toolbars, collapsed Ask anything bar, and audio player bar) and single-line nav/menu rows to radius::FULL, while preserving rounded-rectangle radii (SM–XL) on cards, popovers, dialogs, multi-line textareas, multi-line sidebar/contact/template/automation rows, checkboxes, keycaps, inline code, and thumbnails.
    • Adjusted horizontal pill padding across tight controls/rows and applied directional .rounded_l(radius::FULL) / .rounded_r(radius::FULL) on flush split/segmented controls (where GPUI's overflow_hidden clips rectangularly).
    • Updated apps/desktop-gpui/README.md and ui::theme::radius doc comments.
  • Shared UI & Web (packages/ui, packages/editor, apps/web):
    • Added corner-shape: round for .rounded-full (and directional variants) in packages/ui/src/styles/corners.css so the global * { corner-shape: squircle; } rule does not square off pill/circle ends.
    • Removed 8px useSquircleRef clips from Button, Badge, SelectTrigger, and Avatar (now a clean circle), updated Input, InputGroup (single-line pill, multiline rounded-xl), InputGroupButton, appFloatingItemClassName (dropdown/select/command items), AppToast actions, Dialog close button, and @anlg/editor floating toolbar / slash-command / attachment chips to rounded-full with balanced horizontal padding.
    • Removed the global border-radius: 0 !important override from apps/web/src/styles.css, unified remaining web inputs/icon buttons/menu rows/delta chips/audio player bar to rounded-full, and updated apps/web/AGENTS.md and apps/web/BRAND.md.
  • Mobile (apps/mobile):
    • Set Radius.control and LISTENING_CONTROL_RADIUS to DesignRadius.pill (999), unifying StartListeningButton, EditorAccessory format buttons, FolderPickerSheet search input & rows (with Spacing.md horizontal padding and continuous squircle curve), and NoteActionsSheet action rows while keeping grouped inset Card lists and multi-line cards untouched.

Demo

N/A — visual pass across desktop, web, and mobile; desktop screens were rendered and inspected via tests/screens.rs (main, meeting-after, meeting-after-transcript, search-query, contacts-person, settings-intelligence, settings-transcription-provider-menu, settings-account-signed-in, settings-team-owner, settings-imports-detected, share-managed, transcript-selection-bar, calendar, chat-setup).

Verification

  • Local:
    • apps/desktop-gpui: cargo fmt --check, cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings, cargo test --locked --workspace (1,052 lib + 23 a11y + 1 dictation_capture + 20 runtime lib + 15 library + 15 lifecycle + tests/screens.rs), cargo build --locked, and python3 -m unittest discover -s apps/desktop-gpui/packaging (18 passed) — all passed
    • packages/ui & packages/editor: pnpm -F @anlg/ui build, pnpm -F @anlg/ui typecheck, pnpm -F @anlg/editor typecheck — passed
    • packages/supabase & apps/web: pnpm -F @anlg/supabase typecheck, pnpm -F @anlg/supabase test (36 passed), pnpm -F @anlg/web typecheck, pnpm -F @anlg/web test (403 passed), pnpm -F @anlg/web media:figures:check — passed
    • apps/mobile: pnpm -F @anlg/mobile typecheck, pnpm -F @anlg/mobile test (354 passed) — passed
    • Common checks: pnpm exec dprint check --allow-no-files across all changed files, pnpm exec oxlint --quiet --format=github apps/web/src/ apps/mobile/src/ packages/ (0 errors), license-boundary Python checks — passed; node --test CI script suite 88/90 passed (2 Windows Store tests require pwsh, unavailable locally on macOS).
  • Not run locally: Windows/Linux GPUI native builds, iOS/Android native mobile builds, and full apps/web production SSR bundle (covered by CI).

Summary by cubic

Unifies single-line interactive controls and single-line navigation/menu rows to pill and circle shapes across desktop (apps/desktop-gpui), shared UI (packages/ui, packages/editor), web (apps/web), and mobile (apps/mobile). Multi-line containers — cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows — keep rounded rectangles.

Shape policy

  • Single-line controls (buttons, icon buttons, inputs, selects, segmented control tracks and items, chips, badges, floating toolbars, audio player bars) and single-line menu/nav rows use radius::FULL on desktop, rounded-full on web, and Radius.control = pill on mobile, with balanced horizontal padding.
  • Flush split and segmented controls get directional .rounded_l(radius::FULL) / .rounded_r(radius::FULL) because GPUI's overflow_hidden clips rectangularly.
  • Removes 8px useSquircleRef clips from Button, Badge, SelectTrigger, and Avatar; Avatar is now a clean circle.

Migration

  • Button.smoothCorners and SelectTrigger.corners props are removed; shape now comes from base classes.
  • Removes the global border-radius: 0 !important override from apps/web/src/styles.css, so all radius classes now render.
  • Adds corner-shape: round to .rounded-full (and directional) variants in packages/ui/src/styles/corners.css so pill ends aren't squared off by the global squircle rule.

Written for commit 3c90cf6. Summary will update on new commits.

View guided diff Turn on auto-fix

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates corner radii across desktop, mobile, and web controls. Single-line controls and navigation rows use pill or circular shapes, while multiline inputs and container guidance retain distinct rounding. Many controls also receive padding or sizing changes. Shared UI components remove squircle-ref handling, and the global web rule that forced square corners is removed.

Suggested reviewers: yujonglee

Merge Risk: Minimal · up to 3c90c

This change updates control shapes and spacing to pills and circles across the apps. No functional or production-impacting issue was identified, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: single-line interactive controls and single-line rows are unified to pill and circle shapes. The changeset matches this. The diff covers desktop, shared UI, web, and m…
Description check Passed The description explains the context, intent, and direction of the change. It lists the per-platform updates (desktop radius::FULL, web rounded-full, mobile Radius.control pill), the removal of the gl…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: single-line interactive controls and single-line rows are unified to pill and circle shapes. The changeset matches this. The diff covers desktop, shared UI, web, and mobile, and the title leaves out the removal of the global web border-radius override and the squircle clips. It does not need to cover every detail.

Full details: Description check

Explanation

The description explains the context, intent, and direction of the change. It lists the per-platform updates (desktop radius::FULL, web rounded-full, mobile Radius.control pill), the removal of the global border-radius override and squircle clips, and the verification steps. This matches the changeset.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: c3f001d6-f05f-4a82-a52a-aac1a4bec007
Commits

Reviewing files that changed from the base of the PR and between fd9b073 and 3c90cf6.

Files selected for processing: 5

  • apps/desktop-gpui/src/meeting/player_view.rs
  • apps/desktop-gpui/src/product/local/imports_view.rs
  • apps/desktop-gpui/src/product/mod.rs
  • apps/desktop-gpui/src/workspace/library.rs
  • apps/desktop-gpui/src/workspace/picker.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

devin-ai-integration[bot]

This comment was marked as resolved.

@ComputelessComputer
ComputelessComputer force-pushed the refactor/unify-pill-circle-shapes branch from fd9b073 to 3c90cf6 Compare December 1, 2026 17:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant